package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import yf.mall.entity.TopRecordEntity;
import yf.mall.vo.TopRecordVo;

                                        
/**
 * 上级记录实体
 * 表名 top_record
 *
 *
 * 
 * @date Tue Jun 06 14:28:03 CST 2023
 */
@Data
public class TopRecordDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //用户ID
            @ExcelProperty("用户ID")
            private Long userId;
        
                        //用户名
            @ExcelProperty("用户名")
            private String userName;
        
                        //用户编号
            @ExcelProperty("用户编号")
            private String userCode;
        
                        //当前值
            @ExcelProperty("当前值")
            private String topInfo;
        
                        //之前值
            @ExcelProperty("之前值")
            private String oldInfo;
        
                        //当前TID
            @ExcelProperty("当前TID")
            private Long topId;
        
                        //之前TID
            @ExcelProperty("之前TID")
            private Long oldId;
        
                        //变动原因
            @ExcelProperty("变动原因")
            private String info;
        
                        //变动时间
            @ExcelProperty("变动时间")
            private Date time;
        
    
    public TopRecordDown() {

    }

    public TopRecordDown(TopRecordVo vo) {
        TopRecordEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setUserId(entity.getUserId());
            
                                    this.setUserName(entity.getUserName());
            
                                    this.setUserCode(entity.getUserCode());
            
                                    this.setTopInfo(entity.getTopInfo());
            
                                    this.setOldInfo(entity.getOldInfo());
            
                                    this.setTopId(entity.getTopId());
            
                                    this.setOldId(entity.getOldId());
            
                                    this.setInfo(entity.getInfo());
            
                                    this.setTime(entity.getTime());
            
            }


}
